package edu.uis.project.frankszoo.model.event;

import java.util.EventObject;

/**
 * This class extends the EventObject and represents the HandEndedEvent
 */
public class HandEndedEvent extends EventObject {

	private static final long serialVersionUID = -4110784846221270062L;

	Integer handNo;// Serial No of the hand
	String remainingPlayerID;// ID of the player left behind at the end of the hand

	/**
	 * This is the constructor for the HandEndedEvent
	 * 
	 * @param source
	 *            component that originated the event
	 * @param handNo
	 *            Serial No of the hand
	 * @param remainingPlayerID
	 *            ID of the player left behind at the end of the hand
	 */
	public HandEndedEvent(Object source, Integer handNo, String remainingPlayerID) {
		super(source);
		this.handNo = handNo;
		this.remainingPlayerID = remainingPlayerID;
	}

	/**
	 * Returns the serial no of the hand
	 * 
	 * @return handNo Serial No of the hand
	 */
	public Integer getHandNo() {
		return handNo;
	}

	/**
	 * Returns the ID of the player left behind at the end of the hand
	 * 
	 * @return remainingPlayerID ID of the player left behind at the end of the hand
	 */
	public String getremainingPlayerID() {
		return remainingPlayerID;
	}

}
